home *** CD-ROM | disk | FTP | other *** search
/ Celestin Apprentice 4 / Apprentice-Release4.iso / Source Code / C / Snippets / Dim Text 3.0 / ⁄* remarks *⁄.note < prev    next >
Encoding:
Text File  |  1996-01-01  |  980 b   |  28 lines  |  [TEXT/CWIE]

  1. #if justacomment
  2.  
  3. Part of the process of dimming an editable text item is to change
  4. it to a static text item.  This can change the appearance of the
  5. text, if there is too much text for the width of the item. The
  6. reason is that the current editable item is drawn by TextEdit,
  7. using a destRect twice as wide as the viewRect, whereas static text
  8. items and inactive editable text items are drawn using TextBox,
  9. with destRect and viewRect having the same width.  For the same
  10. reason, updating the window can change the appearance of an editable
  11. text item, if it was the active item when originally drawn but
  12. is no longer active.  To see this, run the demo application; the
  13. two editText items on the left should look like this:
  14.  
  15.   Edit Text
  16.   Too
  17.  
  18. If you move the insertion point to the lower box, and then click
  19. the Erase & Update button, they will change to
  20.  
  21.   Edit Text
  22.   Too lengthy
  23.  
  24. If you then click the box to dim those items, the lower item will
  25. go back to being "Too".
  26.  
  27. #endif
  28.